//
//  HTTPHelper.h
//  qianke
//
//  Created by ZX on 2017/6/23.
//  Copyright © 2017年 ZX. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
typedef void (^ZXSuccessBlock)(NSDictionary *data);
typedef void (^ZXFailureBlock)(NSError *error);
@interface HTTPHelper : NSObject
@property (nonatomic, copy) ZXSuccessBlock zxsuccessBlock;
@property (nonatomic, copy) ZXFailureBlock zxfailureBlock;

+(id)PostUrlStr:(NSString *)urlStr parameters:(NSMutableDictionary *)parameters success:(ZXSuccessBlock)zxsuccessBlock
        failure:(ZXFailureBlock)zxfailureBlock;
+(id)GetUrlStr:(NSString *)urlStr parameters:(NSMutableDictionary *)parameters success:(ZXSuccessBlock)zxsuccessBlock
       failure:(ZXFailureBlock)zxfailureBlock;
+(id)GetHeadmutableRequest:(NSURLRequest *)request success:(ZXSuccessBlock)zxsuccessBlock
                   failure:(ZXFailureBlock)zxfailureBlock;
+(id)PostmutableRequest:(NSURLRequest *)request success:(ZXSuccessBlock)zxsuccessBlock
                failure:(ZXFailureBlock)zxfailureBlock;
@end
